#define BOOST_ASIO_HAS_COROUTINES
#include <boost/asio.hpp>
#include <boost/asio/awaitable.hpp>

#include <boost/asio/io_context.hpp>

#include <boost/asio/co_spawn.hpp>

#include <boost/asio/use_awaitable.hpp>

using boost::asio::awaitable;
using boost::asio::co_spawn;
using boost::asio::detached;
using boost::asio::io_context;

int main() {
  io_context ctx;

  co_spawn(
      ctx,
      []() -> awaitable<void> {
        // 协程体
        co_await std::suspend_never(); // 示例，通常会被具体的协程逻辑替换
      },
      detached);

  ctx.run();
}